package com.law.lawcaculator.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import java.util.Date;
import lombok.Data;

/**
 * 报告会话表
 * @TableName report_sessions
 */
@TableName(value ="report_sessions")
@Data
public class ReportSessions {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 会话ID
     */
    private String sessionId;

    /**
     * 计算器编码
     */
    private String calculatorCode;

    /**
     * 用户答案数据
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private Object userAnswers;

    /**
     * 计算结果
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private Object calculationResults;

    /**
     * HTML报告内容
     */
    private String htmlContent;

    /**
     * 报告原始数据
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private Object reportData;

    /**
     * 
     */
    private Date createdTime;

    /**
     * 过期时间
     */
    private Date expiresTime;
}